<template></template>
<script lang="ts" setup>
defineOptions({
  name: 'App'
})
import { urlInterceptors } from './interceptors/route';
import { useAppStore } from './store/modules/app';


const appStore = useAppStore()
async function getConfig() {
  console.log("getconfig")
  await appStore.getConfig()
  const { status } = appStore.$state.config
  if (status === 0) {
    uni.navigateTo({
      url: "/pages/empty/index"
    })
  }
}


onLaunch(() => {
  // 初始化url拦截器 针对用户输入的url
  urlInterceptors()
  getConfig()
})
</script>
<style>



</style>